package cn.enited.devtools.apiaggregator.consts;

public enum MatchRegexPolicy {

    ALL(0, "^.*{}.*$"),
    LEFT(1, "^{}.*$"),
    RIGHT(2, "^.*{}$");

    private int value;
    private String pattern;

    MatchRegexPolicy(int value, String pattern) {
        this.value = value;
        this.pattern = pattern;
    }

    public int value() {
        return this.value;
    }

    public String pattern() {
        return this.pattern;
    }
}
